package net.majodali.toolshed;

import groovy.lang.Script;

import java.io.IOException;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.*;

import org.codehaus.groovy.bsf.GroovyEngine;

@SuppressWarnings("serial")
public class GAEToolShedServlet extends HttpServlet {
	public String rootHandlerScript;
	public Script rootHandler;
	private GroovyEngine groovyEngine;
	
	@Override
	public void init(ServletConfig config) throws ServletException {
		groovyEngine = new GroovyEngine();
	}
	
	protected void service(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		groovyEngine.exec(arg0, arg1, arg2, arg3)
	}
}
